import {HomeOutlined,FileSyncOutlined} from '@ant-design/icons';
const routes=[
    {key:'/',icon:<HomeOutlined/>,title:'系统主页'},
    {
        subMenuKey:'/sub1',
        icon:<FileSyncOutlined />,
        subMenuTitle:'系统管理',
        roles:['超级管理员'],
        children:[
            {key:'/home/user',title:'用户管理',roles:['超级管理员'],},
            {key:'/home/role',title:'角色管理',roles:['超级管理员'],}
        ]
    },
    {
        subMenuKey:'/sub2',
        icon:<FileSyncOutlined />,
        subMenuTitle:'商品管理',
        roles:['超级管理员','商品管理员'],
        children:[
            {key:'/home/product/list',title:'商品管理',roles:['超级管理员','商品管理员']},
            {key:'/home/product/category',title:'分类管理',roles:['超级管理员','商品管理员']},
            {key:'/home/product/ProductsByPage',title:'商品分页',roles:['超级管理员','商品管理员']}
        ]
    },
    {key:'/home/shop',icon:<FileSyncOutlined/>,title:'店铺管理',roles:['超级管理员']},
    {
        subMenuKey:'/sub3',
        icon:<FileSyncOutlined />,
        subMenuTitle:'统计报表',
        children:[
            {key:'/home/datav/market',title:'市场统计'},
            {key:'/home/datav/sale',title:'销售统计'}
        ]
    }
]
export default routes